﻿using ProjectScheduling_web.model.Enums;
using SqlSugar;

namespace ProjectScheduling_web.model
{
    public class Customer : BClass
    {
        /// <summary>
        /// 客户类型
        /// </summary>
        public EnumCustomerType Type { get; set; }
        [SugarColumn(IsIgnore = true)]
        public string TypeName
        {
            get
            {
                return Type.ToString();
            }
        }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 销售信息ID
        /// </summary>
        public int SalerId { get; set; }
        /// <summary>
        /// 销售名称
        /// </summary>
        public string? SalerName { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string? Phone { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string? Address { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string? Linker { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
